
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MBTI测试 - 个性报告</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" href="/css/report.css?version={:time()}">
    <link rel="stylesheet" href="/css/all.min.css">
</head>
<body>
<div class="container">
    <!-- 报告头部 -->
    <div class="report-header">
        <h1>MBTI个性报告</h1>
        <div class="personality-type">
            <span class="type-label">你的性格类型</span>
            <h2 class="type-code" id="personality-type">{$order.result_type}</h2>
            <span class="type-name" id="type-name">{$detail.type_name}</span>
        </div>
        <div class="type-description">
            <p id="type-description">{$detail.type_description}</p>
        </div>
    </div>

    <div class="report-content">
        <!-- 1. 维度偏好分析 -->
        <div class="dimension-analysis section">
            <h3><i class="fas fa-chart-bar"></i> 维度偏好分析</h3>
            <div class="dimension-bars" id="dimension-bars">
                <!-- 内向/外向维度 -->
                <div class="dimension-item">
                    <div class="dimension-labels">
                        <span>内向 (I)</span>
                        <span>外向 (E)</span>
                    </div>
                    <div class="dimension-bar">
                        <div class="bar-fill" style="width:{$detail.a}%"></div>
                        <span class="percentage">{$detail.a}%</span>
                    </div>
                    <p class="dimension-description">
                        {$detail.a_text ??""}
                    </p>
                </div>

                <!-- 感觉/直觉维度 -->
                <div class="dimension-item">
                    <div class="dimension-labels">
                        <span>感觉 (S)</span>
                        <span>直觉 (N)</span>
                    </div>
                    <div class="dimension-bar">
                        <div class="bar-fill" style="width: {$detail.b}%"></div>
                        <span class="percentage">{$detail.b}%</span>
                    </div>
                    <p class="dimension-description">
                        {$detail.b_text ??""}
                    </p>
                </div>

                <!-- 思考/情感维度 -->
                <div class="dimension-item">
                    <div class="dimension-labels">
                        <span>思考 (T)</span>
                        <span>情感 (F)</span>
                    </div>
                    <div class="dimension-bar">
                        <div class="bar-fill" style="width:{$detail.c}%"></div>
                        <span class="percentage">{$detail.c}%</span>
                    </div>
                    <p class="dimension-description">
                        {$detail.c_text ??""}
                    </p>
                </div>

                <!-- 判断/感知维度 -->
                <div class="dimension-item">
                    <div class="dimension-labels">
                        <span>判断 (J)</span>
                        <span>感知 (P)</span>
                    </div>
                    <div class="dimension-bar">
                        <div class="bar-fill" style="width: {$detail.d}%"></div>
                        <span class="percentage">{$detail.d}%</span>
                    </div>
                    <p class="dimension-description">
                        {$detail.d_text ??""}
                    </p>
                </div>
            </div>
        </div>

        <!-- 2. 性格类型概述 -->
        <div class="personality-overview section">
            <h3><i class="fas fa-user"></i> 性格类型概述</h3>
            <div class="overview-content">
                <p class="overview-text" >
                    {$detail.overview}
                </p>
                <div class="type-strengths">
                    <h4>主要优势</h4>
                    <ul id="type-strengths">
                        {volist name="$detail.strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="type-strengths">
                    <h4>主要劣势</h4>
                    <ul id="">
                        {volist name="$detail.weaknesses" id="vo"}
                        <li>{$vo}</li>
                        {/volist}

                    </ul>
                </div>
            </div>
        </div>

        <!-- 3. 性格特点 -->
        <div class="personality-traits section">
            <h3><i class="fas fa-star"></i> 性格特点</h3>
            <div class="trait-cards" id="personality-traits">
                {volist name="$detail.traits" id="vo"}
                <div class="trait-card">
                    <i class="fas {$vo.icon}"></i>
                    <h4>{$vo.title}</h4>
                    <p>{$vo.description}</p>
                </div>
                {/volist}
            </div>
        </div>

        <!-- 4. 职业发展 -->
        <div class="career-development section">
            <h3><i class="fas fa-briefcase"></i> 职业发展</h3>
            <div class="career-content">
                <div class="suitable-careers">
                    <h4>适合的职业方向</h4>
                    <div class="career-grid" id="suitable-careers">
                        {volist name="$detail.careers" id="vo"}
                        <div class="career-item">
                            <i class="fas {$vo.icon}"></i>
                            <span>{$vo.title}</span>
                        </div>
                        {/volist}
                    </div>
                </div>
                <div class="career-advice">
                    <h4>职业发展建议</h4>
                    <ul id="career-advice">
                        {volist name="$detail.career_advice" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="work-style">
                    <h4>工作风格</h4>
                    <p id="work-style">{$detail.work_style}</p>
                </div>
            </div>
        </div>
        {if condition="$order.version eq '免费版'"}
            <div class="version-notice">
                <i class="fas fa-info-circle"></i>
                请使用其他版本测评生成专业报告！
            </div>
          </div>
        {/if}
        {if condition="$order.version neq '免费版'"}
        <!-- 5. 人际关系 -->
        <div class="relationships section">
            <h3><i class="fas fa-users"></i> 人际关系</h3>
            <div class="relationship-content">
                <div class="communication-style">
                    <h4>沟通风格</h4>
                    <p id="communication-style">{$detail.communication_style}</p>
                </div>
                <div class="relationship-section">
                    <h4>与他人相处</h4>
                    <ul id="relationship-interaction">
                     {volist name="$detail.relationship_interaction" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="relationship-section">
                    <h4>建议</h4>
                    <ul id="relationship-advice">
                        {volist name="$detail.relationship_advice" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>


        <div class="learning-style section">
            <h3><i class="fas fa-address-book"></i> 压力应对</h3>
            <div class="learning-content">
                <p class="learning-overview" >
                    {$detail.learning_style}
                </p>
                <div class="learning-strengths">
                    <h4>压力症状</h4>
                    <ul >
                        {volist name="$detail.stress_response.symptoms" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="learning-tips">
                    <h4>应对策略</h4>
                    <ul >
                        {volist name="$detail.stress_response.coping_strategies" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 6. 学习风格 -->
        <div class="learning-style section">
            <h3><i class="fas fa-book"></i> 学习风格</h3>
            <div class="learning-content">
                <p class="learning-overview" id="learning-overview">
                    {$detail.learning_style}
                </p>
                <div class="learning-strengths">
                    <h4>学习优势</h4>
                    <ul id="learning-strengths">
                        {volist name="$detail.learning_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="learning-tips">
                    <h4>学习建议</h4>
                    <ul id="learning-tips">
                        {volist name="$detail.learning_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 7. 个人成长 -->
        <div class="personal-growth section">
            <h3><i class="fas fa-seedling"></i> 个人成长</h3>
            <div class="growth-content">
                <div class="growth-item">
                    <h4>潜在挑战</h4>
                    <ul id="growth-challenges">
                        {volist name="$detail.growth_challenges" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="growth-item">
                    <h4>成长方向</h4>
                    <ul id="growth-directions">
                        {volist name="$detail.growth_directions" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 8. 情感管理 -->
        <div class="emotional-management section">
            <h3><i class="fas fa-heart-broken"></i> 情感管理</h3>
            <div class="emotional-content">
                <p class="emotional-style" id="emotional-style">
                    {$detail.emotional_style}
                </p>
                <div class="emotional-strengths">
                    <h4>情感优势</h4>
                    <ul id="emotional-strengths">
                        {volist name="$detail.emotional_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="emotional-tips">
                    <h4>情感管理建议</h4>
                    <ul id="emotional-tips">
                        {volist name="$detail.emotional_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 9. 决策风格 -->
        <div class="decision-making section">
            <h3><i class="fas fa-balance-scale"></i> 决策风格</h3>
            <div class="decision-content">
                <p class="decision-style" id="decision-style">
                    {$detail.decision_style}
                </p>
                <div class="decision-strengths">
                    <h4>决策优势</h4>
                    <ul id="decision-strengths">
                        {volist name="$detail.decision_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="decision-tips">
                    <h4>决策建议</h4>
                    <ul id="decision-tips">
                        {volist name="$detail.decision_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 10. 创造力与创新 -->
        <div class="creativity-innovation section">
            <h3><i class="fas fa-lightbulb"></i> 创造力与创新</h3>
            <div class="creativity-content">
                <p class="creativity-style" id="creativity-style">
                   {$detail.creativity_style}
                </p>
                <div class="creativity-strengths">
                    <h4>创新优势</h4>
                    <ul id="creativity-strengths">
                        {volist name="$detail.creativity_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="creativity-tips">
                    <h4>创新建议</h4>
                    <ul id="creativity-tips">
                        {volist name="$detail.creativity_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 11. 领导风格 -->
        <div class="leadership-style section">
            <h3><i class="fas fa-crown"></i> 领导风格</h3>
            <div class="leadership-content">
                <p id="leadership-style">
                    {$detail.leadership_style}
                </p>
                <div class="leadership-strengths">
                    <h4>领导优势</h4>
                    <ul id="leadership-strengths">
                        {volist name="$detail.leadership_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="leadership-tips">
                    <h4>领导建议</h4>
                    <ul id="leadership-tips">
                        {volist name="$detail.leadership_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 12. 团队合作 -->
        <div class="teamwork section">
            <h3> 团队合作</h3>
            <div class="teamwork-content">
                <p class="teamwork-style" id="teamwork-style">
                    {$detail.teamwork_style}
                </p>
                <div class="teamwork-strengths">
                    <h4>团队合作优势</h4>
                    <ul id="teamwork-strengths">
                        {volist name="$detail.teamwork_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="teamwork-tips">
                    <h4>团队合作建议</h4>
                    <ul id="teamwork-tips">
                        {volist name="$detail.teamwork_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>

        <!-- 13. 时间管理 -->
        <div class="time-management section">
            <h3><i class="fas fa-clock"></i> 时间管理</h3>
            <div class="time-content">
                <p class="time-style" id="time-style">
                   {$detail.time_style}
                </p>
                <div class="time-strengths">
                    <h4>时间管理优势</h4>
                    <ul id="time-strengths">
                        {volist name="$detail.time_strengths" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
                <div class="time-tips">
                    <h4>时间管理建议</h4>
                    <ul id="time-tips">
                        {volist name="$detail.time_tips" id="vo"}
                        <li>{$vo}</li>
                        {/volist}
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- 分享和保存按钮 -->
    {/if}
    <div class="report-actions">
        {if condition="$channel neq 'system'"}
        <button class="action-btn save-btn" onclick="printPage()">
            <i class="fas fa-download"></i> 保存报告
        </button>
        {/if}
    </div>
</div>

<script>
    function printPage() {
       location.href = "{:env('pdf.pdf_addr')}/download-pdf/{$order.order_no}.pdf";
    }
</script>
<script src="/js/report.js"></script>

</body>
</html>